#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include "view/ventanaprincipal.h"
#include <gtkmm.h>
#include <gtkglmm.h>
#include "SDL.h"

using namespace ui;
using namespace Gtk;
using namespace Gtk::GL;

int main(int argc, char *argv[]) {

	Main t_Main(&argc, &argv);
	Gtk::GL::init(argc, argv);
	SDL_Init(SDL_INIT_VIDEO);

	Glib::RefPtr<Gdk::GL::Config> t_Config;
	t_Config = Gdk::GL::Config::create(Gdk::GL::MODE_RGB
		| Gdk::GL::MODE_DEPTH | Gdk::GL::MODE_DOUBLE);

	VentanaPrincipal t_VentanaPrincipal(t_Config);
	t_Main.run(t_VentanaPrincipal);

	SDL_Quit();
	return 0;
}

